
module.exports = app => {
    app.get('/', app.controller.home.index);
    app.get('/index', app.controller.home.index);
    app.get('/login', app.controller.login.login);
    app.post('/login', app.controller.login.login);
    app.post('/sms/send', app.controller.sms.send);
    app.get('/authorization', app.controller.authorization.authorization);

    app.get('/information/:id', app.controller.information.detail);

    //资讯评论详情
    app.get('/information/comment/:id', app.controller.comment.information);

    /***************************社区***********************************/

    //社区首页
    app.get('/forum', app.controller.forum.index);

    //分类列表
    app.get('/forum/category', app.controller.forum.category);
    app.get('/forum/category/list', app.controller.forum.categoryList);

    //社区详情
    app.get('/forum/topic/:id', app.controller.topic.index);

    //帖子详情
    app.get('/forum/detail/:id', app.controller.topic.detail);

    //评论详情
    app.get('/forum/comment/:id', app.controller.comment.post);

    //精选问答
    app.get('/answer', app.controller.answer.index);

    //问答详情
    app.get('/answer/detail/:id', app.controller.answer.detail);


    //通知列表
    app.get('/notice', app.controller.notice.list);

    app.get('/notice/list', app.controller.notice.list);
    //通知详细
    app.get('/notice/detail/:id', app.controller.notice.detail);


    /***************************用户中心***********************************/

    //用户中心
    app.get('/member', app.controller.member.index);
    //用户介绍 其他用户看到的界面
    app.get('/member/intro', app.controller.member.intro);

    //用户信息 用户中心的用户信息 使用原生方式
    app.get('/member/info', app.controller.member.info);

    // //用户动态
    // app.get('/member/dynamic', app.controller.member.dynamic);

    //监护人列表
    app.get('/member/guardian', app.controller.guardian.list);

    //监护人信息
    app.get('/member/guardian/info', app.controller.guardian.info);

    //编辑 添加 监护人
    app.get('/member/guardian/edit', app.controller.guardian.edit);
    app.get('/member/guardian/add', app.controller.guardian.add);

    //我的孩子
    app.get('/member/children', app.controller.member.children);

    //我的老师
    app.get('/member/teacher', app.controller.teacher.list);

    //老师评价
    app.get('/member/teacher/evaluate', app.controller.teacher.evaluate);

    //我的评语
    app.get('/member/teacher/evaluate/list', app.controller.teacher.evaluateList);

    app.get('/member/grow', app.controller.grow.list);
    //成长轨迹详细
    app.get('/member/grow/detail', app.controller.grow.detail);
    //资讯评论详情
    app.get('/member/grow/comment/:id', app.controller.comment.grow);
    //我的互动 收藏
    app.get('/member/collect', app.controller.collect.index);


    //帖子动态
    app.get('/member/dynamic', app.controller.grow.dynamic);

    /***************************学习***********************************/
    //学习
    app.get('/study', app.controller.study.index);
    //学习
    app.get('/study/statistics', app.controller.study.statistics);
    //今日作业1
    app.get('/study/homework', app.controller.homework.index);
    //作业练习
    app.get('/study/homework/practice', app.controller.homework.practice);

    // //作业列表
    // app.get('/study/homework/list', app.controller.homework.list);
    //知识点
    app.get('/study/knowledge', app.controller.study.knowledge);
    //练习
    app.get('/study/practice', app.controller.practice.index);
    //练习历史
    app.get('/study/practice/history', app.controller.practice.history);
    //练习结果
    app.get('/study/practice/result', app.controller.practice.result);
    //练习详细
    app.get('/study/practice/detail', app.controller.practice.detail);
    //练习报告
    app.get('/study/practice/history', app.controller.practice.detail);

    //练习结果
    app.get('/study/homework/practice/result', app.controller.homework.result);
    //练习详细
    app.get('/study/homework/practice/detail', app.controller.homework.detail);





    /***************************api 接口***********************************/
    //资讯评论列表
    app.get('/api/comment/list', app.controller.comment.list);
    //资讯评论详情列表
    app.get('/api/comment/information/detail/list', app.controller.comment.informationDetailList);
    //帖子评论列表
    app.get('/api/comment/post/list', app.controller.comment.postList);
    //帖子评论详情列表
    app.get('/api/comment/post/detail/list', app.controller.comment.postDetailList);
    //资讯评论列表
    app.post('/api/comment/information/add', app.controller.comment.informationAdd);
    //帖子评论列表
    app.post('/api/comment/post/add', app.controller.comment.postAdd);








    //forum 查询
    app.get('/api/forum/search', app.controller.forum.search);

    //精选问答列表
    app.get('/api/question/list', app.controller.answer.list);

    //答案列表
    app.get('/api/answer/list', app.controller.answer.answerList);


    //帖子列表
    app.get('/api/post/list', app.controller.post.list);

    //通知列表
    app.get('/api/notice/list', app.controller.notice.data);

    //点赞
    app.post('/api/like/add', app.controller.like.add);
    //点赞删除
    app.post('/api/like/delete', app.controller.like.cancel);
    //收藏
    app.post('/api/collect/add', app.controller.collect.add);
    //收藏删除
    app.get('/api/collect/delete', app.controller.collect.cancel);
    //收藏列表
    app.get('/api/collect/list', app.controller.collect.list);

    //设置默认孩子
    app.get('/api/children/default', app.controller.member.setDefaultChildren);

    //编辑添加监护人
    app.post('/api/guardian/edit', app.controller.guardian.editGuardian);
    //删除监护人
    app.post('/api/guardian/delete', app.controller.guardian.delete);

    app.get('/api/homework/today', app.controller.homework.today);
    app.get('/api/homework/history', app.controller.homework.history);
    app.get('/api/homework/unfinished', app.controller.homework.unfinished);

    app.post('/api/practice/history', app.controller.practice.history);

    //做题提交
    app.post('/api/practice/submit', app.controller.practice.submit);
    app.post('/api/homework/practice/submit', app.controller.homework.submit);


    app.get('/api/member/grow', app.controller.grow.list);

};
